package com.albaba.designpattern.composite.text_001;

/**
 * @Description: 叶子节点，叶子节点中不能包含字节点
 * @Author zx
 * @Date 2025/2/21 14:42
 * @Version 1.0
 */
public class Leaf extends Component{
    @Override
    public void add(Component component) {

    }

    @Override
    public void remove(Component component) {

    }

    @Override
    public Component getChild(int index) {
        return null;
    }

    @Override
    public void operation() {

    }
}
